lib/prune: speed up pruning by retrieving only commits
authorSaqib Ali <saqali@redhat.com>
Mon, 6 Jun 2022 21:46:01 +0000 (17:46 -0400)
committerSaqib Ali <saqali@redhat.com>
Mon, 27 Jun 2022 12:04:50 +0000 (08:04 -0400)
commita9848712377302325b3e4d9803dc6dd2d1d6c533
tree4f4d766c982ae0b26e2220246014c73ced30a883
parent502ad96af222e9653e696b32e87b2730209fa336
lib/prune: speed up pruning by retrieving only commits

After landing the new --commit-only functionality, we still noticed
exceedingly long pruning times in large repos. Lets add an optimization
that will only retrieve commit objects when --commit-only flag is used.
src/libostree/ostree-repo-prune.c
src/libostree/ostree-repo.h